@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 基础布局样式 */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F5F7FA;
    padding: 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: auto;
}

.page-container {
    width: 100%;
    max-width: 1440px;
    min-height: 100vh;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* 无动画状态 */
.page-container.no-animation {
    transition: none !important;
}

/* AI聊天窗口展开时的页面容器样式 */
.page-container.chat-open {
    margin-right: 500px;
    max-width: calc(100% - 500px);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .page-container.chat-open {
        margin-right: 400px;
        max-width: calc(100% - 400px);
    }
}

@media (max-width: 768px) {
    .page-container.chat-open {
        margin-right: 0;
        max-width: 100%;
    }
}

.content-area {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 页面标题样式 */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: #6B7280;
    margin: 0;
}

/* 导航栏样式 */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #EAEEF4;
    padding: 0 20px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .navbar {
        padding: 0 10px;
    }
}

@media (min-width: 1200px) {
    .navbar {
        padding: 0 20px;
    }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #2A5CAA;
}

.nav-link.active {
    color: #2A5CAA;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2A5CAA;
    border-radius: 2px;
}







/* 竞赛引用行与按钮（聊天/历史记录通用） */
.comp-ref-row { display:flex; align-items:center; gap:8px; margin:6px 0; flex-wrap:nowrap; }
.comp-ref-title { font-weight:600; color:#111827; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width: calc(100% - 96px); }
.comp-ref-btn { background:#2563EB; color:#fff; border:none; padding:2px 8px; border-radius:6px; cursor:pointer; font-size:12px; line-height:1.6; white-space:nowrap; }
.comp-ref-btn:hover { background:#1D4ED8; }

/* 响应式设计 */
@media (max-width: 768px) {
    .page-container {
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .content-area {
        padding: 20px 16px;
    }
    
    .navbar {
        padding: 0 16px;
    }
    
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 16px 12px;
    }
    
    .navbar {
        padding: 0 12px;
    }
    
    .nav-links {
        gap: 16px;
    }
}
